#ifndef __ARM_DRV_MPU6050__
#define __ARM_DRV_MPU6050__

#include "main.h"

typedef struct mpu_data {
    double acc_x;
    double acc_y;
    double acc_z;
    double angle_x;
    double angle_y;
    double angle_z;
    double yaw;     // 偏航角
    double pitch;   // 俯仰角
    double roll;    // 翻滚角
    double temperature;
}mpu6050_data_t;

#ifndef ARM_DRV_MPU
#define ARM_DRV_MPU
extern mpu6050_data_t mpuData;

extern CHR *pu1MpuDrvFile;
extern INT4 mpuFilefd;
extern BOOL gmpuState;
#endif


INT4 armDrvMpu6050Enable(VOID);
INT4 armDrvMpu6050Disable(VOID);
BOOL armDrvMpu6050State(VOID);
INT4 armDrvMpu6050Output(INT4);
INT4 armDrvMpu6050Get(mpu6050_data_t *);


#endif //__ARM_DRV_MPU6050__


